<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
		<title></title>
		<script>
			$(document).ready(function(){
				var bol = true;
				$(".list").children().click(function(){
					$(this).find("ul").toggle(200);
					if(bol){
						bol = !bol;
						$(this).find("img").attr("src","img/jian.jpg");
					}else{
						bol = !bol;
						$(this).find("img").attr("src","img/jia.jpg");
					}
					
				});
				$(".list").children().click(function(){
					$(this).siblings().children("ul").stop().hide();
					$(this).siblings().children("img").attr("src","img/jia.jpg");
				});
				
			});
		</script>
		<style>
			.list{
				list-style: none;
				line-height: 25px;
			}
			.list > li{
				margin: 20px;
				margin-top: 30px;
				border:  solid 1px black;
				border-radius: 20px;
			}
			.list li ul{
				display: none;
			}
			a{
				text-decoration: none;
				color: black;
				line-height: 60px;
				margin-left: 30px;
			}
			img{
				
				float: right;
				line-height: 60px;
				margin-top: 20px;
				margin-right: 20px;
			}
		</style>
	</head>
	<body>
		<ul class="list">
			<li>
				<a href="#">一级菜单</a>
				<img src="img/jia.jpg" />
				<ul class="u1">
					<li>1级菜单</li>
					<li>1级菜单</li>
					<li>1级菜单</li>
				</ul>
				
			</li>
			<li>
				<a href="#">二级菜单</a>
				<img src="img/jia.jpg" />
				<ul>
					<li>2级菜单</li>
					<li>2级菜单</li>
					<li>2级菜单</li><li>2级菜单</li>
					<li>2级菜单</li>
					<li>2级菜单</li><li>2级菜单</li>
					<li>2级菜单</li>
					<li>2级菜单</li><li>2级菜单</li>
					<li>2级菜单</li>
					<li>2级菜单</li>
				</ul>
				
			</li>
			<li>
				<a href="#">三级级菜单</a>
				<img src="img/jia.jpg" />
				<ul>
					<li>3级菜单</li>
					<li>3级菜单</li>
					<li>3级菜单</li>
				</ul>
				
			</li>
			<li>
				<a href="#">四级菜单</a>
				<img src="img/jia.jpg" />
				<ul>
					<li>4级菜单</li>
					<li>4级菜单</li>
					<li>4级菜单</li>
					<li>4级菜单</li>
					<li>4级菜单</li>
					<li>4级菜单</li>
					<li>4级菜单</li>
					<li>4级菜单</li>
					<li>4级菜单</li>
				</ul>
				
			</li>
		</ul>
	</body>
</html>
